<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/WEB-INF/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title>套餐详情</title>
		<meta name="description" content="壁虎学车" />
		<meta name="keywords" content="壁虎学车"/>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" href="<%=path %>/BihuWeb/css/amazeui.min.css" />
		<link rel="stylesheet" href="<%=path %>/BihuWeb/css/style.css" />
		<script type="text/javascript" src="<%=path %>/BihuWeb/js/jquery.min.js" ></script>
		<script type="text/javascript" src="<%=path %>/BihuWeb/js/amazeui.min.js" ></script>
		<script type="text/javascript">
		var flog = false;
		var student = "${student.schoolId}";
		if(student != null && student != -1 && student != ""){
			alert("您已报名过驾校，请注意不要重复报名！");
		}
		function chackSubmit(){
		
		if(true == document.getElementById("radio3").checked){
		alert("当前未开放花呗支付，请选择其他支付方式");
		return false;
		}
		
		
		if(flog == true){
		alert("信息提交中，请稍候！");
		return false;
		}
		flog = true;
		return true;
		}
		
		
	
		
		
		</script>
	</head>
	<body>
    <header data-am-widget="header" class="am-header am-header-default header">
	<!--   <div class="am-header-left am-header-nav">
		     <a href="#left-link" class=""> 
		       <i class="am-header-icon am-icon-angle-left"></i>
		     </a>
		  </div> -->	
		  <h1 class="am-header-title"> <a href="#title-link" class="" style="color: #333;">套餐详情</a></h1>
		 
	  </header>
    
    
		<div class="detail-con">
	      	<img src="<%=path %>/BihuWeb/images/gg.jpg" />
        </div>
        
         <div data-am-widget="intro" class="am-intro am-cf am-intro-default">
        <div class="am-intro-hd">
		        <h2 class="am-intro-title">驾校</h2>
		 </div>
         
            
            <div class="am-g am-intro-bd">
		    	<a href="<%= basePath%>/SignUp_toSchool.action?sysUnit.schoolId=${sysUnit.schoolId}">
			        <div class="am-intro-left am-u-sm-5"><img src="<%=path %>/BihuWeb/images/car1.jpg"  /></div>
			        <div class="am-intro-right am-u-sm-7">
			        	<h2>${sysUnit.schoolName }</h2>
			        	
			        	<div class="text">
			        	<p>地址：${sysUnit.schoolAddress }</p>
			        	<span class="fr">&nbsp;了解更多</span>
			        	<p>联系人：${sysUnit.schoolContact }</p>
			        	
                        <span>联系电话：${sysUnit.schoolPhone }</span>
			        		
			        	</div>
			        </div>
		       </a>
		    </div>
            
             <div class="am-intro-hd">
		        <h2 class="am-intro-title">套餐详情</h2>
		 </div>
            
		<div class="detail">
			<h2>${serviceMerchandise.shopName }</h2>
			<div class="price">
				<b>￥${serviceMerchandise.shopPrice }</b>
			</div>
			<div class="kucun">
					
			        	<c:choose>
        	<c:when test="${0 == carmap.get(carId)}">
        		<p>班型：C1</p>
	        </c:when>
	        <c:when test="${1 == carmap.get(carId)}">
	        	<p>班型：C2</p>
	        </c:when>
	        <c:when test="${2 == carmap.get(carId)}">
        		<p>班型：B2</p>
	        </c:when>
	        <c:otherwise>
	        	<p></p>
	        </c:otherwise>
        </c:choose>
        
					<c:choose>
        	<c:when test="${0 == serviceCar.carType}">
        		<p>车型：小型自动档</p>
	        </c:when>
	        <c:when test="${1 == serviceCar.carType}">
	        	<p>车型：中型客车</p>
	        </c:when>
	        <c:when test="${2 == serviceCar.carType}">
        		<p>车型：大型客车</p>
	        </c:when>
	        <c:otherwise>
	        	<p></p>
	        </c:otherwise>
        </c:choose>
        

                <p>教练：${sysUser.userRealName }</p>
                <p>联系电话：${sysUser.userTelephone }</p>
                <p>执教年限：${sysUser.userChargeYear }年</p>
                <p>简介：${serviceMerchandise.shopIntroduce }</p>
			</div>
		</div>
		
        <div class="am-intro-hd">
		        <h2 class="am-intro-title">支付方式</h2>
		 </div>
		 
		 
         <form action="<%=basePath %>/wxpay/WxPay_creatOrder" method="post" onsubmit="return chackSubmit();">
         <input name="openid" type="hidden" value="${openid}"/>
         <input name="userPeriod" type="hidden" value="${serviceMerchandise.shopPeriod }"/>
         <input name="userSchoolId" type="hidden" value="${serviceMerchandise.schoolId }"/>
         <input name="serviceMerchandiseOrder.shopId" type="hidden" value="${serviceMerchandise.shopId}"/>
         <input name="serviceMerchandiseOrder.shopPrice" type="hidden" value="${serviceMerchandise.shopPrice }"/>
         
 <div class="am-g am-intro-bd">
         <table width="90%" border="0" >
  <tr class="text" style="border-bottom:1px solid #eee;">
    <td><label for="radio1"><img src="<%=path %>/BihuWeb/images/weixinpay.png"/></label></td>
    <td><label for="radio1"><p>支付定金<b class="pay-current-price">￥${deposit }</b></p>
	    		<p class="textn">成交后可抵${offset }元使用</p></label></td>
    <td><label class="am-radio am-warning">
                                   <input id="radio1" type="radio" name="serviceMerchandiseOrder.orderPayWay" value="1" class="am-ucheck-radio" checked=""><span class="am-ucheck-icons"><i class="am-icon-unchecked"></i><i class="am-icon-checked"></i>
                    </label></td>
  </tr>
  <tr class="text" style="border-bottom:1px solid #eee;">
    <td><label for="radio2"><img src="<%=path %>/BihuWeb/images/weixinpay.png"/></label></td>
    <td><label for="radio2"><p>支付全款<b class="pay-current-price">￥${disPrice }</b></p>
	    		<p class="textn">${agionum }折优惠</p></label></td>
    <td><label class="am-radio am-warning">
                                   <input id="radio2" type="radio" name="serviceMerchandiseOrder.orderPayWay" value="2" class="am-ucheck-radio"><span class="am-ucheck-icons"><i class="am-icon-unchecked"></i><i class="am-icon-checked"></i>
                    </label></td>
  </tr>
  <!-- 
  <tr class="text">
    <td><label for="radio3"><img src="<%=path %>/BihuWeb/images/zhifubaopay.png"/></label></td>
    <td><label for="radio3"><p>花呗支付<b class="pay-current-price">￥${serviceMerchandise.shopPrice }</b></p>
	    		<p class="textn">尚未开通</p></label></td>
    <td><label class="am-radio am-warning">
                                   <input id="radio3" type="radio" name="serviceMerchandiseOrder.orderPayWay" value="3" class="am-ucheck-radio"><span class="am-ucheck-icons"><i class="am-icon-unchecked"></i><i class="am-icon-checked"></i>
                    </label></td>
  </tr>
   -->
  <tr class="text" style="border-bottom:1px solid #eee;">
    <td><label for="radio4">&nbsp;&nbsp;&nbsp;&nbsp;<img src="<%=path %>/BihuWeb/images/xianjinpay.png" width="150" height="54"/></label></td>
    <td><label for="radio4"><p>线下支付<b class="pay-current-price">￥${serviceMerchandise.shopPrice }</b></p>
	    		<p class="textn">当面缴纳学车费用</p></label></td>
    <td><label class="am-radio am-warning">
                                   <input id="radio4" type="radio" name="serviceMerchandiseOrder.orderPayWay" value="4" class="am-ucheck-radio"><span class="am-ucheck-icons"><i class="am-icon-unchecked"></i><i class="am-icon-checked"></i>
                    </label></td>
  </tr>
</table>

         
         
    </div>
 

   
      
         <div class="am-intro-hd">
		        <h2 class="am-intro-title">个人信息</h2>
		 </div>
        
        
        <div class="search-input">
		<input name="serviceMerchandiseOrder.stuName" type="text" required="required" placeholder="姓名（必填）" class="tab-input" value="${student.userRealName }"/>
		<input name="serviceMerchandiseOrder.stuPhone" type="text" required="required" placeholder="电话（必填）" class="tab-input" value="${student.userTelephone }"/>
        <input name="serviceMerchandiseOrder.stuIdcard" type="text" placeholder="身份证号码（选填）" class="tab-input" value="${student.userIdCard }"/>
		<input type="submit" value="完成报名" class="tab-btn"/>
		
        </form>
		</div>  
     </div>
		<div class="h50"></div>
		
	</body>
</html>
